package cn.com.sise.pojo;


import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class Dictionary {
    private Integer dictionaryId;
    private String word;
    private String translation;
    private String comment;
    private String mean;
    private String example;
    private String collectTime;
    private String historyTime;

    public Integer getDictionaryId() {
        return dictionaryId;
    }

    public void setDictionaryId(Integer dictionaryId) {
        this.dictionaryId = dictionaryId;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getTranslation() {
        return translation;
    }

    public void setTranslation(String translation) {
        this.translation = translation;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getMean() {
        return mean;
    }

    public void setMean(String mean) {
        this.mean = mean;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }

    public String getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(Timestamp collectTime) {
        this.collectTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(collectTime);
    }

    public String getHistoryTime() {
        return historyTime;
    }

    public void setHistoryTime(Timestamp historyTime) {
        this.historyTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(historyTime);
    }

    @Override
    public String toString() {
        return "Dictionary{" +
                "dictionaryId=" + dictionaryId +
                ", word='" + word + '\'' +
                ", translation='" + translation + '\'' +
                ", comment='" + comment + '\'' +
                ", mean='" + mean + '\'' +
                ", example='" + example + '\'' +
                ", collectTime=" + collectTime +
                ", historyTime=" + historyTime +
                '}';
    }
}
